import request from '@/utils/request'

// 新增发票申请
export function invoice_apply(data) {
  return request({
    url: '/exhibition/invoice_apply',
    method: 'post',
    data
  })
}
// 查询发票申请
export function invoice_list(data) {
  return request({
    url: '/exhibition/invoice_apply/list',
    method: 'get',
    params:data
  })
}

// 查询发票抬头列表
export function listInvoice_header(query) {
  return request({
    url: '/exhibition/invoice_header/list',
    method: 'get',
    params: query
  })
}

// 查询发票抬头详细
export function getInvoice_header(headId) {
  return request({
    url: '/exhibition/invoice_header/' + headId,
    method: 'get'
  })
}

// 新增发票抬头
export function addInvoice_header(data) {
  return request({
    url: '/exhibition/invoice_header',
    method: 'post',
    data: data
  })
}

// 修改发票抬头
export function updateInvoice_header(data) {
  return request({
    url: '/exhibition/invoice_header',
    method: 'put',
    data: data
  })
}

// 删除发票抬头
export function delInvoice_header(headId) {
  return request({
    url: '/exhibition/invoice_header/' + headId,
    method: 'delete'
  })
}
